import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '', // 作为默认渲染路由
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      path: 'import', // Excel 导入
      name: 'empImport',
      component: () => import('@/views/employees/empImport.vue'),
      meta: { title: '导入员工' },
      hidden: true
    },
    { // 员工详情
      //  /employees/detail 这个路径就不行了,直接404
      path: 'detail/:id', // 动态路径传参, 将来的路由必须匹配 /employees/detail/daksjdai123 ,这种传参没有? ,是大部分人使用的传参方式
      name: 'detail',
      component: () => import('@/views/employees/empDetail.vue'),
      meta: { title: '员工详情' },
      hidden: true
    }
  ]
}
